# Use an official Python runtime as a parent image
FROM python:3.6

# Set the working directory to /app
WORKDIR /yyd_login_zk

# Copy the current directory contents into the container at /app
COPY . /yyd_login_zk
ADD . /server.properties
# Install any needed packages specified in requirements.txt
RUN pip install  -r requirements.txt
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
    echo 'Asia/Shanghai' >/etc/timezone
# Make port 80 available to the world outside this container
EXPOSE 5000
# Define environment variable

# Run app.py when the container launches
CMD ["python", "api.py"]